package com.hbx.eduorder.client;

import com.hbx.commonutils.ordervo.CourseWebVoOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author hbx
 * @Date 2023/10/20 16:06
 */
@Component
@FeignClient("service-edu")
public interface EduClient {

    //根据课程id返回课程信息，通过远程调用，用于创建订单
    @PostMapping("/eduservice/coursefront//getCourseInfoOrder/{id}")
    CourseWebVoOrder getCourseInfoOrder(@PathVariable("id") String id);
}
